const express = require('express')
const path = require('path')
const connectHistoryApiFallback = require('connect-history-api-fallback')

const app = express()
app.use('/', connectHistoryApiFallback())
app.use('/', express.static(path.resolve(__dirname, './webapps')))

const port = 8081

app.listen(port, 'localhost', () => {
  console.log(`Node Server Start on localhost:${port}...`)
})
